package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UniversityMapper;
import com.ruoyi.system.domain.University;
import com.ruoyi.system.service.IUniversityService;

/**
 * universityService业务层处理
 * 
 * @author ido
 * @date 2021-10-15
 */
@Service
public class UniversityServiceImpl implements IUniversityService 
{
    @Autowired
    private UniversityMapper universityMapper;

    /**
     * 查询university
     * 
     * @param universityId university主键
     * @return university
     */
    @Override
    public University selectUniversityByUniversityId(Long universityId)
    {
        return universityMapper.selectUniversityByUniversityId(universityId);
    }

    /**
     * 查询university列表
     * 
     * @param university university
     * @return university
     */
    @Override
    public List<University> selectUniversityList(University university)
    {
        return universityMapper.selectUniversityList(university);
    }

    /**
     * 新增university
     * 
     * @param university university
     * @return 结果
     */
    @Override
    public int insertUniversity(University university)
    {
        return universityMapper.insertUniversity(university);
    }

    /**
     * 修改university
     * 
     * @param university university
     * @return 结果
     */
    @Override
    public int updateUniversity(University university)
    {
        return universityMapper.updateUniversity(university);
    }

    /**
     * 批量删除university
     * 
     * @param universityIds 需要删除的university主键
     * @return 结果
     */
    @Override
    public int deleteUniversityByUniversityIds(Long[] universityIds)
    {
        return universityMapper.deleteUniversityByUniversityIds(universityIds);
    }

    /**
     * 删除university信息
     * 
     * @param universityId university主键
     * @return 结果
     */
    @Override
    public int deleteUniversityByUniversityId(Long universityId)
    {
        return universityMapper.deleteUniversityByUniversityId(universityId);
    }
}
